#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int findDelayedArrivalTime(int arrivalTime, int delayedTime) {
    if (arrivalTime + delayedTime < 24)
        return arrivalTime + delayedTime;
    else
        return (arrivalTime + delayedTime) % 24;
}

int main()
{

	return 0;
}